package cn.cvs.dao.supper;

import cn.cvs.pojo.Supplier;
import org.mybatis.spring.SqlSessionTemplate;

public class SupperMapperImpl implements SupperMapper{
    public SqlSessionTemplate getSqlSession() {
        return sqlSession;
    }

    public void setSqlSession(SqlSessionTemplate sqlSession) {
        this.sqlSession = sqlSession;
    }

    private SqlSessionTemplate sqlSession;
    @Override
    public int addSupper(Supplier supplier) {
        return sqlSession.insert("cn.cvs.supper.SupperMapper.addSupper",supplier);
    }

    @Override
    public int delSupplier(int id) {
        return sqlSession.delete("cn.cvs.supper.SupperMapper.delSupplier",id);
    }
}
